package club.cearnach.api.dao;

import club.cearnach.entity.Role;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * @author 阮胜
 * @date 2018/5/23 18:08
 */
public interface IRoleDao extends JpaRepository<Role, Integer> {
    Optional<Role> findByName(String name);
}
